---
--- Created by xieyuxin24.
--- DateTime: 2021/11/9 15:29
---

function unlock(KEYS, ARGV)

    local v = redis.call('get', KEYS[1]);
    if (v == nil or v == ARGV[1]) then
        return redis.call('del', KEYS[1]);
    else
        return 0;
    end

end
